;----------------------------------------------------------------------------
; CANON USB Adapter for MS
; CABULKM MPD Install INF   32bit  2000/XP/Vista/7, 98/Me
;
;                             8/June/2010
; Copyright (C) RATOC Systems,inc. 
;
;;----------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"
Class=SCSIAdapter
Provider=%String0%
DriverVer=06/08/2010,3.8.0.0
Catalogfile=CANONx32.cat

[Version.NT]
Signature="$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%String0%

DriverVer=06/08/2010,3.8.0.0
Catalogfile=CANONx32.cat

;;LayoutFile=LAYOUT.INF


;------------------------------------------------------------------------------
; Copy Files Section
;------------------------------------------------------------------------------
[CABULKM_WDM.files]
CABULKM.SYS

[CABULK_MPD.files]
CABULKRM.MPD

;;[CABULK_PNP.Files]
;;CABLKPnP.exe
;;REXCFG.VXD

[CABULK_2K.files]
CABLKRM2.SYS
;;CABLKM2.SYS

[SourceDisksNames]
1="CANON USB Adapter for MS Installation Disk",,

[SourceDisksFiles]
CABULKM.SYS = 1
CABULKRM.mpd = 1
CABLKRM2.sys = 1
;;CABLKM2.SYS = 1
CABLKMPD.inf = 1

[DestinationDirs]
DefaultDestDir = 10, system32\drivers
CABULKM_WDM.files = 10,System32\Drivers
CABULK_MPD.files = 12		; \<WINDIR>\SYSTEM\IOSUBSYS
;;CABULK_2K.files = 10,System32\Drivers



; Class Install
[ClassInstall]
Addreg=SCSIReg

[ClassInstall32.ntx86]
Addreg=SCSIReg_NT


[SCSIReg]
HKR,,,,%SCSIClassName%

[SCSIReg_NT]
HKR,,,,%SCSIClassNameNT%
HKR,,Installer32,,"SysSetup.Dll,ScsiClassInstaller"
HKR,,Icon,,"-10"
HKR,,LegacyInfOption,,"SCSI"
HKR,,DeviceType,0x10001,4                       ; FILE_DEVICE_CONTROLLER
HKR,,DeviceCharacteristics,0x10001,0x100        ; Use same security checks on relative opens



[Manufacturer]
%String1%=RATOC

; ----------------------------------------
; Manufacturer Sections

[RATOC]
%String2% = CABULKMPD_Inst, CABULK\MPD


; ----------------------------------------
; Driver Install Sections

[CABULKMPD_Inst]
CopyFiles = CABULKM_WDM.files, CABULK_MPD.files
AddReg= IOS, CABULKMPD_Inst.Reg, AdapterSettingWin9x

[CABULKMPD_Inst.NT]
CopyFiles = CABULK_2K.files

[CABULKMPD_Inst.NT.Services]
Addservice = CABLKRM2, 0x00000002, CABULKMPD_Service, Miniport_EventLog_Inst

[CABULKMPD_Service]
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
;;StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\CABLkrm2.sys
LoadOrderGroup = SCSI Miniport
AddReg         = pnpsafe_isa_addreg
AddReg         = Param_addreg_2K

;*************************************************************
;These addreg sections should be used when installins services to indicate
;which interface types are safe for PNP and which aren't.  INTERFACE_TYPE
;is defined in NTDDK.H
[pnpsafe_isa_addreg]
HKR, "Parameters\PnpInterface", "1", %REG_DWORD%, 0x00000011
HKR, "Parameters\PnpInterface", "8", %REG_DWORD%, 0x00000001
HKR, "Parameters\PnpInterface", "5", %REG_DWORD%, 0x00000001
HKR, "Parameters\PnpInterface", "15", %REG_DWORD%, 0x00000001
HKR, "Parameters\PnpInterface", "f", %REG_DWORD%, 0x00000001
;;[cardbus_interface_type]
;;HKR, "ScsiPort", "LegacyInterfaceType", %REG_DWORD%, 0x00000005

[Param_addreg_2K]
HKR, "Parameters\Device", "DriverParameter", %REG_SZ%, "/DEBUGLEVEL=0 "

;*************************************************************
;The EventLog entries are the same for all SCSI miniports.
[Miniport_EventLog_Inst]
AddReg = Miniport_EventLog_AddReg

[Miniport_EventLog_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,%REG_DWORD%,7


; ---------------------------------------
; AddReg Sections

[CABULKMPD_Inst.Reg]
HKR,,PortDriver,,CABULKRM.mpd

[AdapterSettingWin9x]
HKR,,AdapterSettings,,"/DEBUGLEVEL=0 "

; ------------------------------
; IOS common section
[IOS]
HKR,,DevLoader,,*IOS
;HKR,,DontLoadIfConflict,,Y





[Strings]
String0="Canon Electronics Inc."
String1="Canon Electronics Inc."
String2="CANON USB Adapter for MS"

SCSIClassName="SCSI Controllers"
SCSIClassNameNT="SCSI and RAID controllers"


;*******************************************
;Handy macro substitutions (non-localizable)
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER  = 1
SERVICE_BOOT_START     = 0
SERVICE_DEMAND_START   = 3
SERVICE_ERROR_NORMAL   = 1
REG_EXPAND_SZ          = 0x00020000
REG_DWORD              = 0x00010001
REG_SZ                 = 0x00000000

